﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NFAPI
{
    public partial class Queue
    {
        private List<QueueItem> _items = new List<QueueItem>();

        [XPath("/queue/etag")]
        public long ETag { get; set; }

        [XPath("/queue/number_of_results")]
        public int NumberOfResults { get; set; }

        [XPath("/queue/start_index")]
        public int StartIndex { get; set; }

        [XPath("/queue/results_per_page")]
        public int ResultsPerPage { get; set; }

        [XPath("/queue/queue_item")]
        public List<QueueItem> Items {
            get { return _items; }
            set { _items = value; }
        }

        [XPath("/queue/link[@rel='http://schemas.netflix.com/queues.saved']")]
        public Link Saved { get; set; }

        [XPath("/queue/link[@rel='http://schemas.netflix.com/queues.available']")]
        public Link Available { get; set; }
    }
}
